﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StorageSystem.QF;
using StorageSystem.HT;


namespace TestProject
{
    class Program
    {
        static void Main(string[] args)
        {
            BinaryQueuedFile qf = BinaryQueuedFile.CreateFile(@"c:\test.qf");
            for (int i = 0; i < 100; i++)
                qf.Enqueue(new KeyValuePair<int, int>(i, i * 2));

            for (int i = 0; i < 100; i++)
                qf.Enqueue(i.ToString());

            var all = qf.ShadowDequeueAll();
            Console.WriteLine(all.Count);

            Console.WriteLine("");

            for (int i = 0; i < 100; i++)
                Console.WriteLine(qf.Dequeue(1)[0]);
            qf.Enqueue("333");
            for (int i = 0; i < 101; i++)
                Console.WriteLine(qf.Dequeue(1)[0]);


            Console.ReadLine();
        }
    }
}
